﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using SiGeMEC.Models;
using System.Data.Entity.ModelConfiguration.Conventions;

namespace SiGeMEC.Models
{
  public class SigemecContext : DbContext
  {
    public DbSet<Equipo> Equipos { get; set; }
    public DbSet<Tarea> Tareas { get; set; }
    public DbSet<TipoEquipo> TipoEquipos { get; set; }

    protected override void OnModelCreating(DbModelBuilder modelBuilder)
    {
      modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
    }
  }
}